<!DOCTYPE html>
<div id="space" style="height: 20px"></div>
<div>
  <span style="outline: auto">
    <div>A</div>
    B
  </span>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
  space.style.height = '100px';
}, true);
</script>
